<?php

use Han\News;

$app->get('/news/:newsId', function ($newsId) use($app) {
  
	$news = new News();	  
  
    $name = $news->getNewsDetail() . '=newsId=' . $newsId;

    $app->render('index.php',  array(
        'name' => $name,
    ));
     
});